// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import ".."

AndroidAppItem{
    id: _root
    width: parent.width
    height: 0
    color: "#ffffff"
    visible: false

    property variant source: []


    //背景
    Image{
        id: _imeBackground
        anchors.fill: parent
        anchors.topMargin: 140 * viewScale
        height: 440 * viewScale
        cache: false
        source: _root.source[0]
    }
    //IMEの枠
    Image{
        id: _frame
        anchors.fill: parent
        source: "images/ComAdamrockerAndroidInputSimeji_jpn.png"
    }

    states: [
        State {
            name: "ImeOn"
            when: visible && _root.isPortrait
            PropertyChanges {
                target: _root
                height: 580 * viewScale
            }
        },
        State{
            name: "Land"
            when: visible && !_root.isPortrait
            PropertyChanges {
                target: _root
                height: 342 * viewScale
            }
            PropertyChanges {
                target: _imeBackground
                anchors.topMargin: 69 * viewScale
                source: _root.source[1]
            }
            PropertyChanges {
                target: _frame
                source: "images/ComAdamrockerAndroidInputSimeji_en_land.png"
            }
        }
    ]
}
